package com.amos.exception;

import com.amos.bean.IResult;

/**
 * Copyright © 2018 嘉源锐信. All rights reserved.
 *
 * @Project: mu-exam
 * @ClassName: BizException
 * @Package: com.amos.exception
 * @author: zhuqb
 * @Description: 自定义业务异常
 * <p/>
 * 异常继承基类异常，并且实现对应的构造器来初始化自定义业务异常
 * @date: 2020/3/24 0024 下午 15:39
 * @Version: V1.0
 */
public class BizException extends BaseException {
    private static final long serialVersionUID = 3811397837329317612L;

    /**
     * 自定义业务异常的构造器
     *
     * @param result
     */
    public BizException(IResult result) {
        super(result);
    }

    /**
     * 自定义业务异常的构造器
     *
     * @param code
     * @param msg
     */
    public BizException(int code, String msg) {
        super(code, msg);
    }

    /**
     * 自定义业务异常的构造器
     *
     * @param result
     * @param args
     * @param msg
     */
    public BizException(IResult result, Object[] args, String msg) {
        super(result, args, msg);
    }

    /**
     * 自定义业务异常的构造器
     *
     * @param result
     * @param args
     * @param msg
     * @param throwable
     */
    public BizException(IResult result, Object[] args, String msg, Throwable throwable) {
        super(result, args, msg, throwable);
    }
}
